package com.hopes.bizz.risk.transfer.bean.log.vo;

import com.hopes.bizz.risk.transfer.bean.bo.RiskTransferBatch;
import com.hopes.bizz.risk.transfer.constant.RiskStatusCode;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/2/20 19:08
 */

@Data
public class RiskLogResult<T> {

    private Integer code;

    private String msg;

    private List<T> obj;

    public RiskLogResult(RiskStatusCode riskStatusCode, List<T> obj) {
        this.code = riskStatusCode.getCode();
        this.msg = riskStatusCode.getMsg();
        this.obj = obj;
    }

    public RiskLogResult(String msg) {
        this.msg = msg;
        this.code = 200;
    }

}
